package com.example.login.config;

<<<<<<< HEAD
import com.example.login.interceptor.Myinterceptor;
=======
import com.example.login.interceptor.FirstInterceptor;
>>>>>>> 77e1c474be113eb88840feb2f1fc7181bcd81339
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
@EnableWebMvc
<<<<<<< HEAD
public class InterceptorConfig implements WebMvcConfigurer  {
    @Override
    public void addInterceptors(InterceptorRegistry registry){
        registry.addInterceptor(new Myinterceptor())
                .addPathPatterns("/**")
                .excludePathPatterns("/login/**");
=======
public class InterceptorConfig implements WebMvcConfigurer {
    @Override
    public  void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new FirstInterceptor()).addPathPatterns("/**").excludePathPatterns("/login");
>>>>>>> 77e1c474be113eb88840feb2f1fc7181bcd81339
    }
}
